package gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;

import pack.help.Command;
// The window containing the panel with the simulator
public class SimWindow extends JFrame {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Simulator simulator;
	private JPanel contentPane;
	
	public void newCommand(Command c){
		simulator.newCommand(c);
	}
	
	public SimWindow() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(600, 100,700,500);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		simulator = new Simulator();
		simulator.setBackground(UIManager.getColor("activeCaption"));
		contentPane.add(simulator, BorderLayout.CENTER);
		simulator.setLayout(new BorderLayout(0, 0));
		
		this.setTitle("Simulator");
	}

}
